package com.ZeroCarbon.service;

import com.ZeroCarbon.domain.po.Avatar;
import com.ZeroCarbon.exception.BusinessLogicException;
import com.ZeroCarbon.exception.FileHandingException;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface IAvatarService extends IService<Avatar> {
    void saveAvatar(MultipartFile file) throws IOException, FileHandingException, BusinessLogicException;

    String getAvatar(String id) throws FileHandingException, BusinessLogicException;
}
